//
//  InfiniteScrollPicker.h
//  InfiniteScrollPickerExample
//
//  Created by Philip Yu on 6/6/13.
//  Copyright (c) 2013 Philip Yu. All rights reserved.
//

#import <UIKit/UIKit.h>

@class InfiniteScrollPicker;


@protocol InfiniteScrollPickerDelegate <NSObject>

@optional
- (void)infiniteScroll:(InfiniteScrollPicker*)picker didSelectedAtIndex:(int)index;

@end
@interface InfiniteScrollPicker : UIScrollView<UIScrollViewDelegate>
{
    NSMutableArray *imageStore;
    bool snapping;
    float lastSnappingX;
    UIPageControl*  pageControl;
}
@property (nonatomic, weak) id<InfiniteScrollPickerDelegate> infiniteDelegate;

@property (nonatomic, strong) NSArray *viewsArray;
@property (nonatomic) CGSize itemSize;
@property (nonatomic) float alphaOfobjs;

@property (nonatomic) float heightOffset;
@property (nonatomic) float positionRatio;


- (void)initBase;
- (void)initInfiniteScrollView;
- (void)setSelectedItem:(int)index;

@end
